package com.sys.mapper;

import com.sys.entity.BizGrowthBoxItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BizGrowthBoxItemMapper {
    void save(BizGrowthBoxItem item);
    
    List<BizGrowthBoxItem> findByGrowthBoxId(@Param("growthBoxId") Long growthBoxId);
    
    BizGrowthBoxItem findById(@Param("id") Long id);
    
    void deleteById(@Param("id") Long id);
    
    boolean existsByTaskId(@Param("growthBoxId") Long growthBoxId, @Param("taskId") Long taskId);
    
    List<Long> findTaskIdsByGrowthBoxId(@Param("growthBoxId") Long growthBoxId);
}